Simple Python Permutation to get the output is by making a list and then printing it

47

from itertools import permutations 
print(list(permutations([1,2,3])))

Comments

Submit
0 Comments